home *** CD-ROM | disk | FTP | other *** search
/ Die Speccy' 97 / Die Speccy' 97.iso / amiga_system / the_aminet / util / cli / whence.lha / WHENCE / README < prev    next >
Text File  |  1995-10-31  |  2KB  |  60 lines

  1.  
  2. Whence - version 1.4
  3.  
  4. Rationale
  5. ~~~~~~~~~
  6.  
  7.     This simple tool searches each directory in the AmigaDos Path for
  8. the given command and reports each instance.
  9.  
  10.     It is useful for determining if the first instance encountered,
  11. ( the one AmigaDos will execute ), is the one expected. 
  12.  
  13.     Whence is functionally similar to AmigaDos 2.04 command 'which',
  14. but has some small differences, namely :-
  15.  
  16.     1) the size and date of the command are printed.
  17.     2) redundant reporting of  C: is suppressed.
  18.  
  19. Installation
  20. ~~~~~~~~~~~
  21.  
  22. Just put it somewhere in the commands path, e.g C:
  23.     
  24. Example
  25. ~~~~~~~
  26.  
  27. Here's a concocted example of 'whence dir'.  
  28.  
  29. dir                          2943 bytes : 10-Oct-90 13:11:15
  30. RAM_DISK:dir                 3440 bytes : 20-Jan-93 21:11:15
  31. C:dir                        3440 bytes : 16-Jul-91 15:06:55
  32.  
  33. The first 'dir' (the one which will be executed ) is in the current 
  34. directory and is older than the other versions. Murphy's law says
  35. that it's not the one you want to execute.
  36.  
  37. Background
  38. ~~~~~~~~~~
  39.  
  40.     A while ago I got the version of whence off Fish Disk 432
  41. and found that it reported not only files(commands) but directories. 
  42. As the author didn't have a net address I decided just to write my 
  43. own version to make it report files only, like the UNIX version, plus
  44. modify its behaviour to report all instances of a command including
  45. size and date.
  46.  
  47. Reporting multiple versions deviates from the UNIX whence but it seemed 
  48. useful since it exposed all instances of a command, some of which may
  49. be superfluous.  
  50.  
  51.  
  52.      Bug reports etc via e-mail to gduncan@werple.net.au.
  53.  
  54. Distribution
  55. ~~~~~~~~~~~~
  56.  
  57. This is issued with C-source, compilable under SAS/C 6.5x, and is freeware.
  58.  
  59.  
  60.